/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.todoterreno.beans;

import java.io.File;
import java.io.FileInputStream;
import java.io.Serializable;
import org.primefaces.model.DefaultStreamedContent;
import org.primefaces.model.StreamedContent;

/**
 *
 * @author davex
 */
public class AgentsBean implements Serializable{

    private StreamedContent imageMau;
    private StreamedContent imageNeto;
    private String textManu;
    private String textNeto;
    
    public AgentsBean() {
        try{
            File imgFile = new File("/home/davidpanel/agents/mauricio.jpeg");
            imageMau=new DefaultStreamedContent(new FileInputStream(imgFile), "image/jpg");
            textManu="Person in charge of the houses and land in California to any state that is needed"
                    + "<br>and can be contacted through the following information:";
            textManu+="<br><br>605 W. Olympic Blvd. #403<br>Los Angeles, CA 90005<br>Tel: 388-4350 Cell:(213) 300-6811<br>Mauricio Mendoza Broker<br>Lic #01112602";
            imgFile = new File("/home/davidpanel/agents/neto.jpeg");
            imageNeto=new DefaultStreamedContent(new FileInputStream(imgFile), "image/jpg");
            textNeto="Persona encargada de las casas y terreno en El Salvador, para cualquier departamento que se necesite"
                    + "<br>y se puede contactar con él mediante la siguiente información:";
            textNeto+="<br><br>Bo La Merced 9 Av S # 411<br>Tel: 2258-7985 Cell:(503) 7895-3219<br>Ernesto Mendoza Doctor<br>NJV #5649899";
        }catch(Exception e){
            e.printStackTrace();
        }
        
    }

    public StreamedContent getImageMau() {
        return imageMau;
    }

    public void setImageMau(StreamedContent imageMau) {
        this.imageMau = imageMau;
    }

    public StreamedContent getImageNeto() {
        return imageNeto;
    }

    public void setImageNeto(StreamedContent imageNeto) {
        this.imageNeto = imageNeto;
    }

    public String getTextManu() {
        return textManu;
    }

    public void setTextManu(String textManu) {
        this.textManu = textManu;
    }

    public String getTextNeto() {
        return textNeto;
    }

    public void setTextNeto(String textNeto) {
        this.textNeto = textNeto;
    }

    
    
}
